﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HD.Model
{
    public class Follow
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public int PostId { get; set; }
        public int EmployeeId { get; set; }
        [MaxLength(200, ErrorMessageResourceName = "FollowCommentMaxMessage", ErrorMessageResourceType = typeof(Resource))]
        public string Comments { get; set; }
        [ForeignKey("PostId")]
        public Posts Post { get; set; }
        [ForeignKey("EmployeeId")]
        public virtual Employee Employee { get; set; }

    }
}
